import React, { Component } from 'react'

export default class Title extends Component {
  render() {
    let { name, time } = this.props;
    return (
      <div>
        <h1>{name}</h1>
        <h3>{time}</h3>
        <hr />
        {this.props.children}
      </div>
    )
  }
}
